public class Student {
    private int stuid;
    private String name;
    private int age;

    public Student() {
    }

    public Student(int stuid, String name, int age) {
        this.stuid = stuid;
        this.name = name;
        this.age = age;
    }

    public int getStuid() { //取值
        return stuid;
    }

    public void setStuid(int stuid) { //赋值
        this.stuid = stuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuid=" + stuid +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
